package com.peanut.baby.mvp.mycontent;

import com.peanut.baby.model.LiveRoom;
import com.peanut.baby.model.QA;
import com.peanut.baby.mvp.BasePresenter;
import com.peanut.baby.mvp.BaseView;

import java.util.List;

/**
 * Created by anonymouslystudio on 2017/8/10.
 */

public interface CourseContract {
    interface View extends BaseView{
        void onGetCourseListSuccess(List<LiveRoom> qas);
        void onRequestFailed(String reason);
        void onJoinSuccess(LiveRoom room);
        void onJoinFailed(String code, String reason);

    }
    interface Presenter extends BasePresenter{
        void getCourseList(String userId,int pageNo, int pageSize);
        void joinRoom(String userId,final LiveRoom roomId);
    }
}
